package com.tz.crm.entity.dto;

/**
 * Created by wangchunyang on 2017/3/7.
 * 拜访量报表
 */
public class Report {

    private String userName;//用户名
    private int countVisit;//访问次数
    private int countDay;//天数
    private double visitDaily;
    private int newCustomerVisit;
    private int oldCustomerVisit;

    /**
     * 空参构造
     */
    public Report() {
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public int getCountDay() {
        return countDay;
    }

    public void setCountDay(int countDay) {
        this.countDay = countDay;
    }

    public double getVisitDaily() {
        return Double
                .valueOf(Integer.valueOf(countVisit * 1000 / countDay) / 1000.0);
    }

    public int getNewCustomerVisit() {
        return newCustomerVisit;
    }

    public void setNewCustomerVisit(int newCustomerVisit) {
        this.newCustomerVisit = newCustomerVisit;
    }

    public int getOldCustomerVisit() {
        return countVisit - newCustomerVisit;
    }

    public void setCountVisit(int countVisit) {
        this.countVisit = countVisit;
    }

    public int getCountVisit() {
        return countVisit;
    }

    @Override
    public String toString() {
        return "Report{" +
                "userName='" + userName + '\'' +
                ", countVisit=" + countVisit +
                ", countDay=" + countDay +
                ", visitDaily=" + visitDaily +
                ", newCustomerVisit=" + newCustomerVisit +
                ", oldCustomerVisit=" + oldCustomerVisit +
                '}';
    }
}
